package com.itheima03;

public abstract class YuanGong {
    private String name;
    private String manOrWomen;
    private int age;
    public abstract void work();

    public YuanGong() {
    }

    public YuanGong(String name, String manOrWomen, int age) {
        this.name = name;
        this.manOrWomen = manOrWomen;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getManOrWomen() {
        return manOrWomen;
    }

    public void setManOrWomen(String manOrWomen) {
        this.manOrWomen = manOrWomen;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
